# Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license. See the accompanying LICENSE file for details.

if(YARP_COMPILE_yarplogger)
  add_executable(yarplogger-console)
  target_sources(yarplogger-console PRIVATE main.cpp)
  target_link_libraries(yarplogger-console PRIVATE YARP::YARP_os
                                                   YARP::YARP_init
                                                   YARP::YARP_logger)

  install(TARGETS yarplogger-console COMPONENT utilities DESTINATION ${CMAKE_INSTALL_BINDIR})

  set_property(TARGET yarplogger-console PROPERTY FOLDER "Command Line Tools")
endif()
